package com.dongdong.bookstore.module.ums.viewmodel;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;

/**
 * @author chiangkai
 * @date 2021-10-20
 * @email chiangkk@163.com
 */
@Data
public class AdminRegistParam {
    @NotEmpty(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;
    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)
    private String password;
    @ApiModelProperty(value = "用户头像")
    private String icon;

    @Email(message = "邮箱验证错误")
    @NotEmpty(message = "邮箱不能为空")
    @ApiModelProperty(value = "邮箱")
    private String email;
    @NotEmpty(message = "用户昵称不能为空")
    @ApiModelProperty(value = "用户昵称")
    private String nickName;
}
